#pragma once
#include <QtGui>
#include "FileNameParser.h"
#include "QFileNameListView.h"
#include "QImageShower.h"


//*************************
#include "vtkVolume16Reader.h"
#include "vtkPNGReader.h"
#include "vtkImageCast.h"
#include "vtkBMPReader.h"
#include "vtkJPEGReader.h"

class QReconstructionFileDialog :
	public QDialog
{
	Q_OBJECT

public:
	QReconstructionFileDialog(QStringList fonts,QString *selectedFilter,QWidget *parent = 0);
	~QReconstructionFileDialog(void);

	bool OKButtonClick;

private:
	QFileNameListView *fileListView;
	QImageShower *imageShow;
	QGridLayout *gridLayoutDialog;
	QHBoxLayout *horizontalLayout;
	QWidget *widgetParamers;
	QPushButton *acceptButton;
	QPushButton *rejectButton;

	QGroupBox *groupBoxParameter;
	QLabel *label1;
	QLabel *label3;
	QLabel *label2;
	QLabel *label4;
	QLabel *label5;

	QSpinBox *lineEdit1;
	QSpinBox *lineEdit2;
	QDoubleSpinBox *lineEdit4;
	QDoubleSpinBox *lineEdit3;
	QDoubleSpinBox *lineEdit5;
	
	


	QLabel *labelW1;
	QLabel *labelW2;
	QLabel *labelH1;
	QLabel *labelH2;
	QLabel *labelL;
	QWidget *buttonWidget;
	bool rename;

	int datatype;
	/*vtkVolume16Reader *dicomReader; 
	vtkPNGReader *pngReader;
	vtkBMPReader *bmpReader;
	vtkJPEGReader *jpgReader;*/
	//vtkDataObject *reader;

public slots:
	//void takeInFiles(  );
	void takeInFiles();
	void rejectButtonClick();
};

